<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawerLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.hpe.aruba.CPPM.ManageMacsActivity">
    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/macsLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <include
            android:id="@+id/incl_toolbar"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            layout="@layout/main_toolbar" />

        <RelativeLayout
            android:id="@+id/orderBar"
            android:layout_width="match_parent"
            android:layout_height="30dp"
            app:layout_constraintTop_toBottomOf="@id/incl_toolbar"
            android:background="@color/white"
            android:elevation="4dp">

            <TextView
                android:id="@+id/orderTextMac"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="30dp"
                android:text="MAC"
                android:textSize="12sp" />

            <ImageButton
                android:id="@+id/arrowSortMac"
                android:layout_width="12dp"
                android:layout_height="12dp"
                android:background="@color/transparent"
                app:srcCompat="@drawable/ic_arrow_down_24dp"
                android:layout_toRightOf="@id/orderTextMac"
                android:layout_marginStart="4dp"
                android:layout_centerVertical="true"
                android:clickable="true"
                android:focusable="true"
                android:onClick="onOrderBarItemSelected"/>

            <TextView
                android:id="@+id/orderTextVendor"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="50dp"
                android:layout_toRightOf="@+id/arrowSortMac"
                android:layout_centerVertical="true"
                android:text="Vendor"
                android:textSize="12sp" />

            <ImageButton
                android:id="@+id/arrowSortVendor"
                android:layout_width="12dp"
                android:layout_height="12dp"
                android:background="@color/transparent"
                app:srcCompat="@drawable/ic_arrow_down_24dp"
                android:layout_toRightOf="@id/orderTextVendor"
                android:layout_marginStart="4dp"
                android:layout_centerVertical="true"
                android:clickable="true"
                android:focusable="true"
                android:onClick="onOrderBarItemSelected"/>
            <TextView
                android:id="@+id/orderTextCol2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="84dp"
                android:layout_toRightOf="@+id/arrowSortVendor"
                android:layout_centerVertical="true"
                android:text="Status or Role"
                android:textSize="12sp" />

            <ImageButton
                android:id="@+id/arrowSortCol2"
                android:layout_width="12dp"
                android:layout_height="12dp"
                android:background="@color/transparent"
                app:srcCompat="@drawable/ic_arrow_down_24dp"
                android:layout_toRightOf="@id/orderTextCol2"
                android:layout_marginStart="4dp"
                android:layout_centerVertical="true"
                android:clickable="true"
                android:focusable="true"
                android:onClick="onOrderBarItemSelected"/>
        </RelativeLayout>


        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
            android:id="@+id/swiperefresh"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:background="@color/aruba_list_background"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/orderBar">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/macEditListView"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:background="@color/aruba_list_background"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@id/incl_toolbar">

            </androidx.recyclerview.widget.RecyclerView>
        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/floatingActionButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="16dp"
            android:layout_marginBottom="16dp"
            android:backgroundTint="@color/aruba_orange"
            android:clickable="true"
            android:focusable="true"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:srcCompat="@drawable/ic_add_24dp"
            android:elevation="8dp"
            android:onClick="onFabClicked"/>
    </androidx.constraintlayout.widget.ConstraintLayout>

    <com.google.android.material.navigation.NavigationView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/navigationView"
        android:layout_gravity="start"
        app:menu="@menu/burger_menu"
        app:headerLayout="@layout/burger_header" />
</androidx.drawerlayout.widget.DrawerLayout>


